<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2018/4/9
 * Time: 13:37
 */

namespace app\index\controller;


use think\Controller;

class Teach extends GetSlides
{
    public function education()
    {
        $this->get_slider();//返回banner
        $cates = [
            ['id' => 'ca939f00-9fd4-4064-8bce-1a02c71c5fb7', 'page_limit' => 1], //教学概况
            ['id' => '8656df7b-61d4-4b63-b350-107a29fdbd76', 'page_limit' => 4], //教学动态
            ['id' => '5c7b9892-a0a4-483e-94c3-5b003b3ab190', 'page_limit' => 3], //临床技能模拟
            ['id' => '9395dcb4-4c19-421b-a8ba-6425bce1d2dd', 'page_limit' => 5], //本科生教育
            ['id' => '97d5dd49-20b2-4d47-91e3-215bdebb19c2', 'page_limit' => 5], //研究生教育
            ['id' => '721f95a0-0938-4757-8107-70ee162de90c', 'page_limit' => 5], //继续医学教育
            ['id' => 'f1b1d921-855e-4745-b329-1ce55830481d', 'page_limit' => 5], //医师规范化培训
            ['id' => 'ab48e970-fd87-4f7c-be17-906e1655f0cd', 'page_limit' => 4], //相关链接
        ];
        $A = new Api();
        $data = [];
        card_info_special_page($A, $cates, $data);
        $jxgk = $A->get_p_detail(ARTICLE['教学概况']);
        $jxgk = getImg($jxgk);
        $jxgk_text = strip_tags($jxgk['data'][0]['attributes']['body']['value']);
        $jxgk_img = $jxgk['data'][0]['attributes']['imageurl'];
        $GLOBALS['dar1'] = 'jx';
        $this->assign('jxgk', $jxgk_text);
        $this->assign('jxgk_img', $jxgk_img);
        $this->assign($data);
        $this->assign("web_title", "教学");
        return view();
    }
}
